package com.xlhl.init.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xlhl.init.common.EntityToVoService;
import com.xlhl.init.common.QueryWrapperService;
import com.xlhl.init.model.entity.Permission;
import com.xlhl.init.model.vo.PermissionVO;

import java.util.List;

/**
 * @author xlhl
 * @description 针对表【permission(权限表(二进制位控制))】的数据库操作Service
 * @createDate 2025-07-29 22:30:39
 */
public interface PermissionService extends IService<Permission>, QueryWrapperService<Permission>, EntityToVoService<Permission, PermissionVO> {

    /**
     * 根据角色ID获取权限列表
     *
     * @param roleId
     * @return
     */
    List<PermissionVO> listByRoleId(Long roleId);

    /**
     * 获取所有权限列表
     *
     * @return
     */
    List<PermissionVO> listPermission();
}
